import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Generation from '@/components/Generation'
import ReadBarCode from '@/components/ReadBarCode'

Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/redBarCode',
      name: 'qr-code-search',
      component: ReadBarCode,
    },
    {
      path: '/generation',
      name: 'qecode',
      component: Generation,
    },
  ]
})
